﻿using System;
using System.Data;

namespace TMDT.BusinessObjects
{
    public class ThuocTinh
    {
        public Guid IDThuocTinh { get; set; }
        public string TenThuocTinh { get; set; }

        public static ThuocTinh Convert(DataRow row)
        {
            ThuocTinh thuocTinh = new ThuocTinh();
            thuocTinh.IDThuocTinh = new Guid(row["IDThuocTinh"].ToString());
            thuocTinh.TenThuocTinh = row["TenThuocTinh"].ToString();

            return thuocTinh;
        }
    }
}
